import request from '@/utils/request'

export function keyword(query) {
  return request({
    url: '/file/pdf/keyword',
    method: 'get',
    params: query,
    timeout: 1000 * 60 * 10, //设置超时
  })
}

// 获取目录
export function getPdfOutline(query) {
  return request({
    url: '/file/pdf/getPdfOutline',
    method: 'get',
    params: query,
    timeout: 1000 * 60 * 10, //设置超时
  })
}

// 骑缝章完成签署
export function completeRidingSeal(data) {
  return request({
    url: '/file/pdf/completeRidingSeal',
    method: 'post',
    data,
    timeout: 1000 * 60 * 10, //设置超时
  })
}

// 完成盖章和签名
export function complete(data) {
  return request({
    url: '/file/pdf/complete',
    method: 'post',
    data,
    timeout: 1000 * 60 * 10, //设置超时
  })
}

// 生成骑缝章图片
export function generatePagingSeal(query) {
  return request({
    url: '/file/pdf/generatePagingSeal',
    method: 'get',
    params: query,
    timeout: 1000 * 60 * 10, //设置超时
  })
}
